package com.zlc.common.common.constant;


public enum BizResponseStatus {
    OK("200", "OK"),
    BUSINESS_EXEPTION("500000", "业务系统异常"),
    PARAM_VALIDATION("400001", "参数校验异常"),
    ILLEGAL_STATE("400002", "状态校验异常"),
    TOO_MANY_REQUESTS("429000", "访问太频繁！"),
    UNAUTHORIZED("401000", "未授权"),
    BAD_CREDENTIALS("401001", "用户名或密码不正确"),
    INVALID_VERIFICATION_CODE("401002", "无效验证码"),
    ACCOUNT_LOCKED("401003", "帐号被锁定"),
    TOKEN_EXPIRED("401004", "Access Token失效"),
    SESSION_EXPIRED("401005", "SESSION失效"),
    VERIFICATION_CODE_NOT_FOUND("401006", "验证码不存在"),
    ACCOUNT_DISABLED("401007", "帐号已禁用"),
    ACCOUNT_NOT_FOUND("401008", "帐号不存在"),
    INVALID_TOKEN("401009", "无效Access Token"),
    INVALID_FREFRESH_TOKEN("401010", "无效Refresh Token"),
    REFRESH_TOKEN_EXPIRED("401011", "Refresh Token失效"),
    FORBIDDEN("403000", "Forbidden");

    private final String status;
    private final String desc;

    private BizResponseStatus(String status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public String status() {
        return this.status;
    }

    public String desc() {
        return this.desc;
    }

    public String toString() {
        return this.status + " " + this.name();
    }
}
